#include <QtGui>
#include "aboutAuthorsDialog.h"

AboutAuthorsDialog::AboutAuthorsDialog(QWidget *parent) : QLabel(parent) {

//Кодек для руссификации
  russianCodec = QTextCodec::codecForName("UTF-8");
  QTextCodec::setCodecForTr(russianCodec);
  QTextCodec::setCodecForCStrings(russianCodec);

//Установки для окна
  this->setWindowTitle(tr("О Mantiss"));
  this->setFixedSize(WAUTHORS, HAUTHORS);
  // this->resize(WAUTHORS, HAUTHORS);

  QString text("");
  text += "<table border=0 cellpadding=0 cellspacing=0 align=left valign=top><tr>";
  text += "<td width=320><img valign=top src=':/resources/logo.png'></td>";
  text += "<td align=center valign=middle>";
  text += "<h2>Mantiss</h2>";
  text += "Версия 0.9.0<br><br>";
  text += "Программа разработана<br> Золотаревским Александром (ALex-Annet)<br>";
  text += "по чертежам Любарского Николая.<br><br>";
  text += "Лицензия: GNU General Public License,<br> версия 3<br><br>";
  text += "2009 г.";
  text += "</td>";
  text += "</tr></table>";

  this->setText(text);
  

} //AboutAuthorsDialog::AboutAuthorsDialog(QWidget *parent) : QLabel(parent)

void AboutAuthorsDialog::keyPressEvent(QKeyEvent * event) {

  if (event->key() == Qt::Key_Escape) {

    this->hide();

  } //else if (event->key() == Qt::Key_Return)

} //void AboutAuthorsDialog::keyPressEvent(QKeyEvent * event)
